package com.erp.common.util;

import org.springframework.data.jpa.repository.JpaRepository;

public class ServiceUtil {
    public static Boolean deleteIds(Long[] ids, JpaRepository dao){
        try {
            for (Long id:ids) {
                dao.deleteById(id);
            }
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
        return true;
    }
}
